#ifndef __PLATFORM_H__
#define __PLATFORM_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#include <getopt.h>             /* getopt_long() */

#include <fcntl.h>              /* low-level i/o */
#include <unistd.h>
#include <errno.h>
#include <malloc.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <pthread.h>
#include <asm/types.h>          /* for videodev2.h */

#include <linux/videodev2.h>
#include <sys/socket.h>
#include <netinet/in.h>
 #include <arpa/inet.h>



 #include <ctype.h>
 #include <limits.h>
 #include <time.h>
 #include <locale.h>
 #include <sys/unistd.h>
 #include <alsa/asoundlib.h>






#define IPCAMERA_SDK_MUTEX                         pthread_mutex_t
#define IPCAMERA_SDK_INIT_MUTEX(mutex)             pthread_mutex_init(&mutex, NULL)
#define IPCAMERA_SDK_LOCK_MUTEX(mutex)             pthread_mutex_lock(&mutex)
#define IPCAMERA_SDK_UNLOCK_MUTEX(mutex)           pthread_mutex_unlock(&mutex)

#endif
